import { request } from '@/utils';
import { getRestBaseUrl } from '@/config';

// 查询  zhouwenkai
export const loadListStore = (queryForm, page = { pageSize: 10, pageNum: 1 }) =>
  request({
    url: `${getRestBaseUrl()}/iop/priceAdjustExceptionService/list`,
    method: 'POST',
    data: {
      form: queryForm,
      page,
    },
    timeout: 3 * 60 * 1000,
  });
// 一键审核
export const oneKeyAudit = taskId =>
  request({
    url: `${getRestBaseUrl()}/iop/adjustService/oneKeyAudit`,
    method: 'POST',
    data: { taskId },
    timeout: 3 * 60 * 1000,
  });

export const loadStatistics = () =>
  request({
    url: `${getRestBaseUrl()}/iop/priceAdjustExceptionService/statistics`,
    method: 'POST',
    data: null,
    timeout: 3 * 60 * 1000,
  });
